package _18_strategy_pattern.v_strategy_enum;

import java.util.Arrays;

public class Client {
	public static void main(String[] args) {
		args = new String[]{"2", "+", "3"};
		//输入的两个参数是数字
		int a = Integer.parseInt(args[0]);
		String symbol = args[1]; //符号
		int b = Integer.parseInt(args[2]);
		System.out.println("输入的参数为：" + Arrays.toString(args));
//		System.out.println("运行结果为：" + a + symbol + b + "=" + Calculator.ADD.exec(a, b));

		Calculator.SUB.exec(a, b);
	}
}